@import '~components/constants.scss';

.has_workspaces.animated {
  .workspaces_view {
    animation: init_workspaces_view_60 ease 0.2s;
  }
}
.workspaces_view {
  background: $secondary;
  width: 60px;
  min-width: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  .list {
    padding-top: 20px;
  }
}
.no_workspaces {
  .workspaces_view {
    width: 0px !important;
    min-width: 0px !important;
  }
}

.electron {
  .workspaces_view {
    width: 70px;
    .list {
      padding-top: 30px;
    }
  }
  .has_workspaces.animated {
    .workspaces_view {
      animation: init_workspaces_view_70 ease 0.2s;
    }
  }
}

.group_in_selector {
  position: relative;
  margin: -8px !important;

  .group_notification {
    .notification,
    .badge {
      position: absolute;
      right: 8px;
      top: 8px;
      margin-top: 0px !important;
      margin-left: 5px;
      background: $red;
      width: 16px;
      height: 16px;
      border-radius: var(--default-border-radius-large);
      color: $white;
      font-size: 12px;
      line-height: 16px;
      text-align: center;
      min-width: 16px;

      &.circle {
        margin-top: 7px;
      }
    }
  }
}

@keyframes init_workspaces_view_60 {
  0% {
    width: 0px;
  }
  100% {
    width: 60px;
  }
}

@keyframes init_workspaces_view_70 {
  0% {
    width: 0px;
  }
  100% {
    width: 70px;
  }
}
